import request from '@/utils/request'

// 查询参数编码配置列表
export function listParamCode(query) {
  return request({
    url: '/basic/paramCode/list',
    method: 'get',
    params: query
  })
}

// 查询参数编码配置详细
export function getParamCode(id) {
  return request({
    url: '/basic/paramCode/' + id,
    method: 'get'
  })
}

// 新增参数编码配置
export function addParamCode(data) {
  return request({
    url: '/basic/paramCode',
    method: 'post',
    data: data
  })
}

// 修改参数编码配置
export function updateParamCode(data) {
  return request({
    url: '/basic/paramCode',
    method: 'put',
    data: data
  })
}

// 删除参数编码配置
export function delParamCode(id) {
  return request({
    url: '/basic/paramCode/' + id,
    method: 'delete'
  })
}

// 导出参数编码配置
export function exportParamCode(query) {
  return request({
    url: '/basic/paramCode/export',
    method: 'get',
    params: query
  })
}